<template>
  <div class="nav-bar">
  <van-nav-bar
  left-text="返回"
  left-arrow
   :title="$route.meta.title"
  @click-left="onClickLeft"
/>
  </div>
</template>

<script>
export default {
  name: 'NavBar',
  methods: {
    onClickLeft() {
      this.$router.back()
      console.log('返回')
    },

  },
}
</script>

<style lang="less" soped>
.van-nav-bar__text{
  color:#f8c309 !important;
}
.van-icon{
  color:#f8c309 !important;
}
.van-nav-bar__title{
  color:#f8c309 !important;
}
</style>
